import { Loading } from 'element-ui'
const baseOptions = {
  lock: true,
  text: 'Loading',
  spinner: 'el-icon-loading',
  background: 'rgba(0, 0, 0, 0)'
}
// 打开loading
export const openTargetScreen = (options = {}) => {
  options = Object.assign({}, { ...baseOptions }, options)
  return Loading.service(options)
}
// 关闭loading
export function closeTargetScreen (loading) {
  loading.close()
}
